﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace stock
{
    public partial class Site : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Session["id"] == null)
                {
                    lbLogOut.Visible = false;
                    lbLogOut.Enabled = false;
                }
                else
                {
                }
            }
        }

        protected void lbLogOut_Click(object sender, EventArgs e)
        {
            Session["id"]=null;
            lbLogOut.Visible = false;
        }
    }
}